<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<div class="table-responsive">
<table class="cntable table table-bordered dataTable table-withdrawApplyfor">
	<thead>
		<tr>
			<th style="width:50px">序号</th>
			<th style="width:130px">广告名称</th>
			<th style="width:100px">商家名称</th>
			<th style="width:100px">广告位置</th>
			<th style="width:100px">媒介类型</th>
			<th style="width:100px">开始日期</th>
			<th style="width:100px">结束日期</th>
			<th style="width:100px">点击次数</th>		
		</tr>
	</thead>
	<tbody>
		<c:forEach var="advertisement" items="${advertisements}" varStatus="status">
			<tr data-id="${advertisement.id}">
				<td>${status.index+1}</td>
				<td>${advertisement.adName}</td>
				<td>暂无</td>
				<td>${advertisement.locationName}</td>
				<td>
					 <img style="height:80px;" id="smallPicShow" src="${tfn:getFileUrl(advertisement.imgUrl)}" /> 
				</td>
				<td>
				     <fmt:formatDate value="${advertisement.startTime}" type="date" dateStyle="default" pattern="yyyy-MM-dd HH:mm:ss"/>  
				</td>
				<td>
				     <fmt:formatDate value="${advertisement.endTime}" type="date" dateStyle="default" pattern="yyyy-MM-dd HH:mm:ss"/>  
				</td>
				<td>${advertisement.clickCount}</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th absolute-pos">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>
</div>